Release 10.1A: OpenEdge Getting Started:
Progress OpenEdge Studio
Drag and Drop module
The Progress 4GL can read the names of files that an end user drops onto certain widgets. With this functionality, the end user can populate widgets, like selection lists, with a list of files. The Progress 4GL can also use the filenames to retrieve the files and open them in appropriate widgets. Using these techniques, you could save your users time by allowing them to load data into your program by dragging a filename from the Windows Explorer or Desktop onto a widget in your application.
![]()
To launch this module, choose the Drag and Drop button on the SportsPro main window. The Drag and Drop dialog box appears:
![]()
Implementing this technique is simple. You set the
Note: If you cannot click on an object, it is probably behind another object in the window’s layout. Use the Layout menu to move the top object back, or use the List Objects dialog box to access the bottom object.DROP–TARGETattribute on the property sheet of a selection list or editor widget and code the trigger event. For images, theDROP–TARGETattribute is set on the frame that holds the image. When a file is dropped on an object with theDROP-TARGETattribute enabled, theDROP–FILE–NOTIFYevent fires.Table 2–5 describes the major objects used in the Drag and Drop module.
For more information on how drag and drop works, see the entries for the
DROP–TARGETattribute, theEND–FILE–DROP( ) method, theGET–DROPPED–FILE( ) method, theDROP–FILE–NOTIFYevent, and theNUM–DROPPED–FILESattribute in the OpenEdge Development: Progress 4GL Reference .
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |